package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.SmallLanternCard;
import o.azb;
import o.cdr;
import o.cih;
import o.ewm.h;
import o.ewm.j;

public class SmallLanternNode extends cdr {
    public SmallLanternNode(Context context) {
        super(context, 1);
    }

    public int ˏ() {
        return 4;
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        View inflate = from.inflate(h.ʽˋ, null);
        azb.ˏ(inflate);
        LinearLayout linearLayout = (LinearLayout) inflate.findViewById(j.ͺꜟ);
        for (int i = 0; i < 4; i++) {
            View inflate2 = from.inflate(h.ʿᐝ, null);
            cih smallLanternCard = new SmallLanternCard(this.ॱ);
            smallLanternCard.ˏ(inflate2);
            ˊ(smallLanternCard);
            inflate2.setLayoutParams(new LayoutParams(-1, -2, 1.0f));
            linearLayout.addView(inflate2);
        }
        linearLayout.setLayoutParams(new LayoutParams(-1, -2));
        viewGroup.addView(inflate);
        return true;
    }
}
